﻿cmake_minimum_required(VERSION 2.8)
project(avformat)
file(GLOB lib_hdrs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.h)
#file(GLOB lib_srcs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.c)

set( lib_srcs avformat-58.def
 allformats.c 
 avio.c 
 aviobuf.c 
 dump.c 
 format.c 
 id3v1.c 
 id3v2.c 
 metadata.c 
 mux.c 
 options.c 
 os_support.c 
 protocols.c 
 riff.c 
 sdp.c 
 url.c 
 utils.c)

if(${HAVE_LIBC_MSVCRT})
  list(APPEND lib_srcs file_open.c)
endif()

# subsystems
if(${CONFIG_ISO_MEDIA})
  list(APPEND lib_srcs isom.c isom_tags.c)
endif()
if(${CONFIG_NETWORK})
  list(APPEND lib_srcs network.c)
endif()
if(${CONFIG_RIFFDEC})
  list(APPEND lib_srcs riffdec.c)
endif()
if(${CONFIG_RIFFENC})
  list(APPEND lib_srcs riffenc.c)
endif()
if(${CONFIG_RTPDEC})
  list(APPEND lib_srcs rdt.c 
 rtp.c 
 rtpdec.c 
 rtpdec_ac3.c 
 rtpdec_amr.c 
 rtpdec_asf.c 
 rtpdec_dv.c 
 rtpdec_g726.c 
 rtpdec_h261.c 
 rtpdec_h263.c 
 rtpdec_h263_rfc2190.c 
 rtpdec_h264.c 
 rtpdec_hevc.c 
 rtpdec_ilbc.c 
 rtpdec_jpeg.c 
 rtpdec_latm.c 
 rtpdec_mpa_robust.c 
 rtpdec_mpeg12.c 
 rtpdec_mpeg4.c 
 rtpdec_mpegts.c 
 rtpdec_qcelp.c 
 rtpdec_qdm2.c 
 rtpdec_qt.c 
 rtpdec_rfc4175.c 
 rtpdec_svq3.c 
 rtpdec_vc2hq.c 
 rtpdec_vp8.c 
 rtpdec_vp9.c 
 rtpdec_xiph.c)
endif()
if(${CONFIG_RTPENC_CHAIN})
  list(APPEND lib_srcs rtpenc_chain.c rtp.c)
endif()
if(${CONFIG_SHARED})
  list(APPEND lib_srcs log2_tab.c golomb_tab.c)
endif()
if(${CONFIG_SRTP})
  list(APPEND lib_srcs srtp.c)
endif()

# muxers/demuxers
if(${CONFIG_A64_MUXER})
  list(APPEND lib_srcs a64.c rawenc.c)
endif()
if(${CONFIG_AA_DEMUXER})
  list(APPEND lib_srcs aadec.c)
endif()
if(${CONFIG_AAC_DEMUXER})
  list(APPEND lib_srcs aacdec.c apetag.c img2.c rawdec.c)
endif()
if(${CONFIG_AAX_DEMUXER})
  list(APPEND lib_srcs aaxdec.c)
endif()
if(${CONFIG_AC3_DEMUXER})
  list(APPEND lib_srcs ac3dec.c rawdec.c)
endif()
if(${CONFIG_AC3_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_ACE_DEMUXER})
  list(APPEND lib_srcs acedec.c)
endif()
if(${CONFIG_ACM_DEMUXER})
  list(APPEND lib_srcs acm.c rawdec.c)
endif()
if(${CONFIG_ACT_DEMUXER})
  list(APPEND lib_srcs act.c)
endif()
if(${CONFIG_ADF_DEMUXER})
  list(APPEND lib_srcs bintext.c sauce.c)
endif()
if(${CONFIG_ADP_DEMUXER})
  list(APPEND lib_srcs adp.c)
endif()
if(${CONFIG_ADS_DEMUXER})
  list(APPEND lib_srcs ads.c)
endif()
if(${CONFIG_ADTS_MUXER})
  list(APPEND lib_srcs adtsenc.c apetag.c img2.c 
 id3v2enc.c)
endif()
if(${CONFIG_ADX_DEMUXER})
  list(APPEND lib_srcs adxdec.c)
endif()
if(${CONFIG_ADX_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_AEA_DEMUXER})
  list(APPEND lib_srcs aea.c pcm.c)
endif()
if(${CONFIG_AFC_DEMUXER})
  list(APPEND lib_srcs afc.c)
endif()
if(${CONFIG_AIFF_DEMUXER})
  list(APPEND lib_srcs aiffdec.c aiff.c pcm.c 
 mov_chan.c replaygain.c)
endif()
if(${CONFIG_AIFF_MUXER})
  list(APPEND lib_srcs aiffenc.c aiff.c id3v2enc.c)
endif()
if(${CONFIG_AIX_DEMUXER})
  list(APPEND lib_srcs aixdec.c)
endif()
if(${CONFIG_ALP_DEMUXER})
  list(APPEND lib_srcs alp.c)
endif()
if(${CONFIG_ALP_MUXER})
  list(APPEND lib_srcs alp.c)
endif()
if(${CONFIG_AMR_DEMUXER})
  list(APPEND lib_srcs amr.c)
endif()
if(${CONFIG_AMR_MUXER})
  list(APPEND lib_srcs amr.c rawenc.c)
endif()
if(${CONFIG_AMRNB_DEMUXER})
  list(APPEND lib_srcs amr.c)
endif()
if(${CONFIG_AMRWB_DEMUXER})
  list(APPEND lib_srcs amr.c)
endif()
if(${CONFIG_AMV_MUXER})
  list(APPEND lib_srcs amvenc.c)
endif()
if(${CONFIG_ANM_DEMUXER})
  list(APPEND lib_srcs anm.c)
endif()
if(${CONFIG_APC_DEMUXER})
  list(APPEND lib_srcs apc.c)
endif()
if(${CONFIG_APE_DEMUXER})
  list(APPEND lib_srcs ape.c apetag.c img2.c)
endif()
if(${CONFIG_APM_DEMUXER})
  list(APPEND lib_srcs apm.c)
endif()
if(${CONFIG_APM_MUXER})
  list(APPEND lib_srcs apm.c rawenc.c)
endif()
if(${CONFIG_APNG_DEMUXER})
  list(APPEND lib_srcs apngdec.c)
endif()
if(${CONFIG_APNG_MUXER})
  list(APPEND lib_srcs apngenc.c)
endif()
if(${CONFIG_APTX_DEMUXER})
  list(APPEND lib_srcs aptxdec.c rawdec.c)
endif()
if(${CONFIG_APTX_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_APTX_HD_DEMUXER})
  list(APPEND lib_srcs aptxdec.c rawdec.c)
endif()
if(${CONFIG_APTX_HD_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_AQTITLE_DEMUXER})
  list(APPEND lib_srcs aqtitledec.c subtitles.c)
endif()
if(${CONFIG_ARGO_ASF_DEMUXER})
  list(APPEND lib_srcs argo_asf.c)
endif()
if(${CONFIG_ARGO_ASF_MUXER})
  list(APPEND lib_srcs argo_asf.c)
endif()
if(${CONFIG_ARGO_BRP_DEMUXER})
  list(APPEND lib_srcs argo_brp.c argo_asf.c)
endif()
if(${CONFIG_ASF_DEMUXER})
  list(APPEND lib_srcs asfdec_f.c asf.c asfcrypt.c 
 avlanguage.c)
endif()
if(${CONFIG_ASF_O_DEMUXER})
  list(APPEND lib_srcs asfdec_o.c asf.c asfcrypt.c 
 avlanguage.c)
endif()
if(${CONFIG_ASF_MUXER})
  list(APPEND lib_srcs asfenc.c asf.c avlanguage.c)
endif()
if(${CONFIG_ASS_DEMUXER})
  list(APPEND lib_srcs assdec.c subtitles.c)
endif()
if(${CONFIG_ASS_MUXER})
  list(APPEND lib_srcs assenc.c)
endif()
if(${CONFIG_AST_DEMUXER})
  list(APPEND lib_srcs ast.c astdec.c)
endif()
if(${CONFIG_AST_MUXER})
  list(APPEND lib_srcs ast.c astenc.c)
endif()
if(${CONFIG_AU_DEMUXER})
  list(APPEND lib_srcs au.c pcm.c)
endif()
if(${CONFIG_AU_MUXER})
  list(APPEND lib_srcs au.c rawenc.c)
endif()
if(${CONFIG_AVI_DEMUXER})
  list(APPEND lib_srcs avidec.c isom_tags.c)
endif()
if(${CONFIG_AVI_MUXER})
  list(APPEND lib_srcs avienc.c mpegtsenc.c avlanguage.c rawutils.c)
endif()
if(${CONFIG_AVM2_MUXER})
  list(APPEND lib_srcs swfenc.c swf.c)
endif()
if(${CONFIG_AVR_DEMUXER})
  list(APPEND lib_srcs avr.c pcm.c)
endif()
if(${CONFIG_AVS_DEMUXER})
  list(APPEND lib_srcs avs.c voc_packet.c voc.c)
endif()
if(${CONFIG_AVS2_DEMUXER})
  list(APPEND lib_srcs avs2dec.c rawdec.c)
endif()
if(${CONFIG_AVS2_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_AVS3_DEMUXER})
  list(APPEND lib_srcs avs3dec.c rawdec.c)
endif()
if(${CONFIG_BETHSOFTVID_DEMUXER})
  list(APPEND lib_srcs bethsoftvid.c)
endif()
if(${CONFIG_BFI_DEMUXER})
  list(APPEND lib_srcs bfi.c)
endif()
if(${CONFIG_BINK_DEMUXER})
  list(APPEND lib_srcs bink.c)
endif()
if(${CONFIG_BINKA_DEMUXER})
  list(APPEND lib_srcs binka.c)
endif()
if(${CONFIG_BINTEXT_DEMUXER})
  list(APPEND lib_srcs bintext.c sauce.c)
endif()
if(${CONFIG_BIT_DEMUXER})
  list(APPEND lib_srcs bit.c)
endif()
if(${CONFIG_BIT_MUXER})
  list(APPEND lib_srcs bit.c)
endif()
if(${CONFIG_BMV_DEMUXER})
  list(APPEND lib_srcs bmv.c)
endif()
if(${CONFIG_BOA_DEMUXER})
  list(APPEND lib_srcs boadec.c)
endif()
if(${CONFIG_BFSTM_DEMUXER})
  list(APPEND lib_srcs brstm.c)
endif()
if(${CONFIG_BRSTM_DEMUXER})
  list(APPEND lib_srcs brstm.c)
endif()
if(${CONFIG_C93_DEMUXER})
  list(APPEND lib_srcs c93.c voc_packet.c voc.c)
endif()
if(${CONFIG_CAF_DEMUXER})
  list(APPEND lib_srcs cafdec.c caf.c mov_chan.c mov_esds.c)
endif()
if(${CONFIG_CAF_MUXER})
  list(APPEND lib_srcs cafenc.c caf.c riff.c)
endif()
if(${CONFIG_CAVSVIDEO_DEMUXER})
  list(APPEND lib_srcs cavsvideodec.c rawdec.c)
endif()
if(${CONFIG_CAVSVIDEO_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_CDG_DEMUXER})
  list(APPEND lib_srcs cdg.c)
endif()
if(${CONFIG_CDXL_DEMUXER})
  list(APPEND lib_srcs cdxl.c)
endif()
if(${CONFIG_CINE_DEMUXER})
  list(APPEND lib_srcs cinedec.c)
endif()
if(${CONFIG_CODEC2_DEMUXER})
  list(APPEND lib_srcs codec2.c rawdec.c pcm.c)
endif()
if(${CONFIG_CODEC2_MUXER})
  list(APPEND lib_srcs codec2.c rawenc.c)
endif()
if(${CONFIG_CODEC2RAW_DEMUXER})
  list(APPEND lib_srcs codec2.c rawdec.c pcm.c)
endif()
if(${CONFIG_CODEC2RAW_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_CONCAT_DEMUXER})
  list(APPEND lib_srcs concatdec.c)
endif()
if(${CONFIG_CRC_MUXER})
  list(APPEND lib_srcs crcenc.c)
endif()
if(${CONFIG_DATA_DEMUXER})
  list(APPEND lib_srcs rawdec.c)
endif()
if(${CONFIG_DATA_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_DASH_MUXER})
  list(APPEND lib_srcs dash.c dashenc.c hlsplaylist.c)
endif()
if(${CONFIG_DASH_DEMUXER})
  list(APPEND lib_srcs dash.c dashdec.c)
endif()
if(${CONFIG_DAUD_DEMUXER})
  list(APPEND lib_srcs dauddec.c)
endif()
if(${CONFIG_DAUD_MUXER})
  list(APPEND lib_srcs daudenc.c)
endif()
if(${CONFIG_DCSTR_DEMUXER})
  list(APPEND lib_srcs dcstr.c)
endif()
if(${CONFIG_DERF_DEMUXER})
  list(APPEND lib_srcs derf.c pcm.c)
endif()
if(${CONFIG_DFA_DEMUXER})
  list(APPEND lib_srcs dfa.c)
endif()
if(${CONFIG_DHAV_DEMUXER})
  list(APPEND lib_srcs dhav.c)
endif()
if(${CONFIG_DIRAC_DEMUXER})
  list(APPEND lib_srcs diracdec.c rawdec.c)
endif()
if(${CONFIG_DIRAC_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_DNXHD_DEMUXER})
  list(APPEND lib_srcs dnxhddec.c rawdec.c)
endif()
if(${CONFIG_DNXHD_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_DSF_DEMUXER})
  list(APPEND lib_srcs dsfdec.c)
endif()
if(${CONFIG_DSICIN_DEMUXER})
  list(APPEND lib_srcs dsicin.c)
endif()
if(${CONFIG_DSS_DEMUXER})
  list(APPEND lib_srcs dss.c)
endif()
if(${CONFIG_DTSHD_DEMUXER})
  list(APPEND lib_srcs dtshddec.c)
endif()
if(${CONFIG_DTS_DEMUXER})
  list(APPEND lib_srcs dtsdec.c rawdec.c)
endif()
if(${CONFIG_DTS_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_DV_DEMUXER})
  list(APPEND lib_srcs dv.c)
endif()
if(${CONFIG_DV_MUXER})
  list(APPEND lib_srcs dvenc.c)
endif()
if(${CONFIG_DVBSUB_DEMUXER})
  list(APPEND lib_srcs dvbsub.c rawdec.c)
endif()
if(${CONFIG_DVBTXT_DEMUXER})
  list(APPEND lib_srcs dvbtxt.c rawdec.c)
endif()
if(${CONFIG_DXA_DEMUXER})
  list(APPEND lib_srcs dxa.c)
endif()
if(${CONFIG_EA_CDATA_DEMUXER})
  list(APPEND lib_srcs eacdata.c)
endif()
if(${CONFIG_EA_DEMUXER})
  list(APPEND lib_srcs electronicarts.c)
endif()
if(${CONFIG_EAC3_DEMUXER})
  list(APPEND lib_srcs ac3dec.c rawdec.c)
endif()
if(${CONFIG_EAC3_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_EPAF_DEMUXER})
  list(APPEND lib_srcs epafdec.c pcm.c)
endif()
if(${CONFIG_FFMETADATA_DEMUXER})
  list(APPEND lib_srcs ffmetadec.c)
endif()
if(${CONFIG_FFMETADATA_MUXER})
  list(APPEND lib_srcs ffmetaenc.c)
endif()
if(${CONFIG_FIFO_MUXER})
  list(APPEND lib_srcs fifo.c)
endif()
if(${CONFIG_FIFO_TEST_MUXER})
  list(APPEND lib_srcs fifo_test.c)
endif()
if(${CONFIG_FILMSTRIP_DEMUXER})
  list(APPEND lib_srcs filmstripdec.c)
endif()
if(${CONFIG_FILMSTRIP_MUXER})
  list(APPEND lib_srcs filmstripenc.c rawenc.c)
endif()
if(${CONFIG_FITS_DEMUXER})
  list(APPEND lib_srcs fitsdec.c)
endif()
if(${CONFIG_FITS_MUXER})
  list(APPEND lib_srcs fitsenc.c)
endif()
if(${CONFIG_FLAC_DEMUXER})
  list(APPEND lib_srcs flacdec.c rawdec.c 
 flac_picture.c 
 oggparsevorbis.c 
 replaygain.c 
 vorbiscomment.c)
endif()
if(${CONFIG_FLAC_MUXER})
  list(APPEND lib_srcs flacenc.c flacenc_header.c 
 vorbiscomment.c)
endif()
if(${CONFIG_FLIC_DEMUXER})
  list(APPEND lib_srcs flic.c)
endif()
if(${CONFIG_FLV_DEMUXER})
  list(APPEND lib_srcs flvdec.c)
endif()
if(${CONFIG_LIVE_FLV_DEMUXER})
  list(APPEND lib_srcs flvdec.c)
endif()
if(${CONFIG_FLV_MUXER})
  list(APPEND lib_srcs flvenc.c avc.c)
endif()
if(${CONFIG_FOURXM_DEMUXER})
  list(APPEND lib_srcs 4xm.c)
endif()
if(${CONFIG_FRAMECRC_MUXER})
  list(APPEND lib_srcs framecrcenc.c framehash.c)
endif()
if(${CONFIG_FRAMEHASH_MUXER})
  list(APPEND lib_srcs hashenc.c framehash.c)
endif()
if(${CONFIG_FRAMEMD5_MUXER})
  list(APPEND lib_srcs hashenc.c framehash.c)
endif()
if(${CONFIG_FRM_DEMUXER})
  list(APPEND lib_srcs frmdec.c)
endif()
if(${CONFIG_FSB_DEMUXER})
  list(APPEND lib_srcs fsb.c)
endif()
if(${CONFIG_FWSE_DEMUXER})
  list(APPEND lib_srcs fwse.c pcm.c)
endif()
if(${CONFIG_GIF_MUXER})
  list(APPEND lib_srcs gif.c)
endif()
if(${CONFIG_GIF_DEMUXER})
  list(APPEND lib_srcs gifdec.c)
endif()
if(${CONFIG_GSM_DEMUXER})
  list(APPEND lib_srcs gsmdec.c)
endif()
if(${CONFIG_GSM_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_GXF_DEMUXER})
  list(APPEND lib_srcs gxf.c)
endif()
if(${CONFIG_GXF_MUXER})
  list(APPEND lib_srcs gxfenc.c)
endif()
if(${CONFIG_G722_DEMUXER})
  list(APPEND lib_srcs g722.c rawdec.c)
endif()
if(${CONFIG_G722_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_G723_1_DEMUXER})
  list(APPEND lib_srcs g723_1.c)
endif()
if(${CONFIG_G723_1_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_G726_DEMUXER})
  list(APPEND lib_srcs g726.c)
endif()
if(${CONFIG_G726_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_G726LE_DEMUXER})
  list(APPEND lib_srcs g726.c)
endif()
if(${CONFIG_G726LE_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_G729_DEMUXER})
  list(APPEND lib_srcs g729dec.c)
endif()
if(${CONFIG_GDV_DEMUXER})
  list(APPEND lib_srcs gdv.c)
endif()
if(${CONFIG_GENH_DEMUXER})
  list(APPEND lib_srcs genh.c)
endif()
if(${CONFIG_H261_DEMUXER})
  list(APPEND lib_srcs h261dec.c rawdec.c)
endif()
if(${CONFIG_H261_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_H263_DEMUXER})
  list(APPEND lib_srcs h263dec.c rawdec.c)
endif()
if(${CONFIG_H263_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_H264_DEMUXER})
  list(APPEND lib_srcs h264dec.c rawdec.c)
endif()
if(${CONFIG_H264_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_HASH_MUXER})
  list(APPEND lib_srcs hashenc.c)
endif()
if(${CONFIG_HCA_DEMUXER})
  list(APPEND lib_srcs hca.c)
endif()
if(${CONFIG_HCOM_DEMUXER})
  list(APPEND lib_srcs hcom.c pcm.c)
endif()
if(${CONFIG_HDS_MUXER})
  list(APPEND lib_srcs hdsenc.c)
endif()
if(${CONFIG_HEVC_DEMUXER})
  list(APPEND lib_srcs hevcdec.c rawdec.c)
endif()
if(${CONFIG_HEVC_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_HLS_DEMUXER})
  list(APPEND lib_srcs hls.c)
endif()
if(${CONFIG_HLS_MUXER})
  list(APPEND lib_srcs hlsenc.c hlsplaylist.c avc.c)
endif()
if(${CONFIG_HNM_DEMUXER})
  list(APPEND lib_srcs hnm.c)
endif()
if(${CONFIG_ICO_DEMUXER})
  list(APPEND lib_srcs icodec.c)
endif()
if(${CONFIG_ICO_MUXER})
  list(APPEND lib_srcs icoenc.c)
endif()
if(${CONFIG_IDCIN_DEMUXER})
  list(APPEND lib_srcs idcin.c)
endif()
if(${CONFIG_IDF_DEMUXER})
  list(APPEND lib_srcs bintext.c sauce.c)
endif()
if(${CONFIG_IFF_DEMUXER})
  list(APPEND lib_srcs iff.c)
endif()
if(${CONFIG_IFV_DEMUXER})
  list(APPEND lib_srcs ifv.c)
endif()
if(${CONFIG_ILBC_DEMUXER})
  list(APPEND lib_srcs ilbc.c)
endif()
if(${CONFIG_ILBC_MUXER})
  list(APPEND lib_srcs ilbc.c rawenc.c)
endif()
if(${CONFIG_IMAGE2_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE2_MUXER})
  list(APPEND lib_srcs img2enc.c img2.c)
endif()
if(${CONFIG_IMAGE2PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE2PIPE_MUXER})
  list(APPEND lib_srcs img2enc.c img2.c)
endif()
if(${CONFIG_IMAGE2_ALIAS_PIX_DEMUXER})
  list(APPEND lib_srcs img2_alias_pix.c)
endif()
if(${CONFIG_IMAGE2_BRENDER_PIX_DEMUXER})
  list(APPEND lib_srcs img2_brender_pix.c)
endif()
if(${CONFIG_IMAGE_BMP_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_DDS_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_DPX_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_EXR_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_GIF_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_J2K_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_JPEG_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_JPEGLS_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_PAM_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_PBM_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_PCX_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_PGMYUV_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_PGM_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_PHOTOCD_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_PICTOR_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_PNG_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_PPM_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_PSD_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_QDRAW_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_SGI_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_SVG_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_SUNRAST_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_TIFF_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_WEBP_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_XBM_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_XPM_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_IMAGE_XWD_PIPE_DEMUXER})
  list(APPEND lib_srcs img2dec.c img2.c)
endif()
if(${CONFIG_INGENIENT_DEMUXER})
  list(APPEND lib_srcs ingenientdec.c rawdec.c)
endif()
if(${CONFIG_IPMOVIE_DEMUXER})
  list(APPEND lib_srcs ipmovie.c)
endif()
if(${CONFIG_IPU_DEMUXER})
  list(APPEND lib_srcs ipudec.c)
endif()
if(${CONFIG_IRCAM_DEMUXER})
  list(APPEND lib_srcs ircamdec.c ircam.c pcm.c)
endif()
if(${CONFIG_IRCAM_MUXER})
  list(APPEND lib_srcs ircamenc.c ircam.c rawenc.c)
endif()
if(${CONFIG_ISS_DEMUXER})
  list(APPEND lib_srcs iss.c)
endif()
if(${CONFIG_IV8_DEMUXER})
  list(APPEND lib_srcs iv8.c)
endif()
if(${CONFIG_IVF_DEMUXER})
  list(APPEND lib_srcs ivfdec.c)
endif()
if(${CONFIG_IVF_MUXER})
  list(APPEND lib_srcs ivfenc.c)
endif()
if(${CONFIG_IVR_DEMUXER})
  list(APPEND lib_srcs rmdec.c rm.c rmsipr.c)
endif()
if(${CONFIG_JACOSUB_DEMUXER})
  list(APPEND lib_srcs jacosubdec.c subtitles.c)
endif()
if(${CONFIG_JACOSUB_MUXER})
  list(APPEND lib_srcs jacosubenc.c rawenc.c)
endif()
if(${CONFIG_JV_DEMUXER})
  list(APPEND lib_srcs jvdec.c)
endif()
if(${CONFIG_KUX_DEMUXER})
  list(APPEND lib_srcs flvdec.c)
endif()
if(${CONFIG_KVAG_DEMUXER})
  list(APPEND lib_srcs kvag.c)
endif()
if(${CONFIG_KVAG_MUXER})
  list(APPEND lib_srcs kvag.c rawenc.c)
endif()
if(${CONFIG_LATM_MUXER})
  list(APPEND lib_srcs latmenc.c rawenc.c)
endif()
if(${CONFIG_LMLM4_DEMUXER})
  list(APPEND lib_srcs lmlm4.c)
endif()
if(${CONFIG_LOAS_DEMUXER})
  list(APPEND lib_srcs loasdec.c rawdec.c)
endif()
if(${CONFIG_LUODAT_DEMUXER})
  list(APPEND lib_srcs luodatdec.c)
endif()
if(${CONFIG_LRC_DEMUXER})
  list(APPEND lib_srcs lrcdec.c lrc.c subtitles.c)
endif()
if(${CONFIG_LRC_MUXER})
  list(APPEND lib_srcs lrcenc.c lrc.c)
endif()
if(${CONFIG_LVF_DEMUXER})
  list(APPEND lib_srcs lvfdec.c)
endif()
if(${CONFIG_LXF_DEMUXER})
  list(APPEND lib_srcs lxfdec.c)
endif()
if(${CONFIG_M4V_DEMUXER})
  list(APPEND lib_srcs m4vdec.c rawdec.c)
endif()
if(${CONFIG_M4V_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_MATROSKA_DEMUXER})
  list(APPEND lib_srcs matroskadec.c matroska.c 
 flac_picture.c isom_tags.c rmsipr.c 
 oggparsevorbis.c vorbiscomment.c 
 qtpalette.c replaygain.c)
endif()
if(${CONFIG_MATROSKA_MUXER})
  list(APPEND lib_srcs matroskaenc.c matroska.c 
 av1.c avc.c hevc.c isom_tags.c 
 flacenc_header.c avlanguage.c 
 vorbiscomment.c wv.c)
endif()
if(${CONFIG_MCA_DEMUXER})
  list(APPEND lib_srcs mca.c)
endif()
if(${CONFIG_MCC_DEMUXER})
  list(APPEND lib_srcs mccdec.c subtitles.c)
endif()
if(${CONFIG_MD5_MUXER})
  list(APPEND lib_srcs hashenc.c)
endif()
if(${CONFIG_MGSTS_DEMUXER})
  list(APPEND lib_srcs mgsts.c)
endif()
if(${CONFIG_MICRODVD_DEMUXER})
  list(APPEND lib_srcs microdvddec.c subtitles.c)
endif()
if(${CONFIG_MICRODVD_MUXER})
  list(APPEND lib_srcs microdvdenc.c)
endif()
if(${CONFIG_MJPEG_2000_DEMUXER})
  list(APPEND lib_srcs rawdec.c mj2kdec.c)
endif()
if(${CONFIG_MJPEG_DEMUXER})
  list(APPEND lib_srcs rawdec.c)
endif()
if(${CONFIG_MJPEG_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_MLP_DEMUXER})
  list(APPEND lib_srcs rawdec.c mlpdec.c)
endif()
if(${CONFIG_MLP_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_MLV_DEMUXER})
  list(APPEND lib_srcs mlvdec.c riffdec.c)
endif()
if(${CONFIG_MM_DEMUXER})
  list(APPEND lib_srcs mm.c)
endif()
if(${CONFIG_MMF_DEMUXER})
  list(APPEND lib_srcs mmf.c)
endif()
if(${CONFIG_MMF_MUXER})
  list(APPEND lib_srcs mmf.c rawenc.c)
endif()
if(${CONFIG_MODS_DEMUXER})
  list(APPEND lib_srcs mods.c)
endif()
if(${CONFIG_MOFLEX_DEMUXER})
  list(APPEND lib_srcs moflex.c)
endif()
if(${CONFIG_MOV_DEMUXER})
  list(APPEND lib_srcs mov.c mov_chan.c mov_esds.c 
 qtpalette.c replaygain.c)
endif()
if(${CONFIG_MOV_MUXER})
  list(APPEND lib_srcs movenc.c av1.c avc.c hevc.c vpcc.c 
 movenchint.c mov_chan.c rtp.c 
 movenccenc.c rawutils.c)
endif()
if(${CONFIG_MP2_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_MP3_DEMUXER})
  list(APPEND lib_srcs mp3dec.c replaygain.c)
endif()
if(${CONFIG_MP3_MUXER})
  list(APPEND lib_srcs mp3enc.c rawenc.c id3v2enc.c)
endif()
if(${CONFIG_MPC_DEMUXER})
  list(APPEND lib_srcs mpc.c apetag.c img2.c)
endif()
if(${CONFIG_MPC8_DEMUXER})
  list(APPEND lib_srcs mpc8.c apetag.c img2.c)
endif()
if(${CONFIG_MPEG1SYSTEM_MUXER})
  list(APPEND lib_srcs mpegenc.c)
endif()
if(${CONFIG_MPEG1VCD_MUXER})
  list(APPEND lib_srcs mpegenc.c)
endif()
if(${CONFIG_MPEG1VIDEO_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_MPEG2DVD_MUXER})
  list(APPEND lib_srcs mpegenc.c)
endif()
if(${CONFIG_MPEG2SVCD_MUXER})
  list(APPEND lib_srcs mpegenc.c)
endif()
if(${CONFIG_MPEG2VIDEO_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_MPEG2VOB_MUXER})
  list(APPEND lib_srcs mpegenc.c)
endif()
if(${CONFIG_MPEGPS_DEMUXER})
  list(APPEND lib_srcs mpeg.c)
endif()
if(${CONFIG_MPEGTS_DEMUXER})
  list(APPEND lib_srcs mpegts.c)
endif()
if(${CONFIG_MPEGTS_MUXER})
  list(APPEND lib_srcs mpegtsenc.c)
endif()
if(${CONFIG_MPEGVIDEO_DEMUXER})
  list(APPEND lib_srcs mpegvideodec.c rawdec.c)
endif()
if(${CONFIG_MPJPEG_DEMUXER})
  list(APPEND lib_srcs mpjpegdec.c)
endif()
if(${CONFIG_MPJPEG_MUXER})
  list(APPEND lib_srcs mpjpeg.c)
endif()
if(${CONFIG_MPL2_DEMUXER})
  list(APPEND lib_srcs mpl2dec.c subtitles.c)
endif()
if(${CONFIG_MSF_DEMUXER})
  list(APPEND lib_srcs msf.c)
endif()
if(${CONFIG_MPSUB_DEMUXER})
  list(APPEND lib_srcs mpsubdec.c subtitles.c)
endif()
if(${CONFIG_MSNWC_TCP_DEMUXER})
  list(APPEND lib_srcs msnwc_tcp.c)
endif()
if(${CONFIG_MSP_DEMUXER})
  list(APPEND lib_srcs mspdec.c)
endif()
if(${CONFIG_MTAF_DEMUXER})
  list(APPEND lib_srcs mtaf.c)
endif()
if(${CONFIG_MTV_DEMUXER})
  list(APPEND lib_srcs mtv.c)
endif()
if(${CONFIG_MUSX_DEMUXER})
  list(APPEND lib_srcs musx.c)
endif()
if(${CONFIG_MV_DEMUXER})
  list(APPEND lib_srcs mvdec.c)
endif()
if(${CONFIG_MVI_DEMUXER})
  list(APPEND lib_srcs mvi.c)
endif()
if(${CONFIG_MXF_DEMUXER})
  list(APPEND lib_srcs mxfdec.c mxf.c)
endif()
if(${CONFIG_MXF_MUXER})
  list(APPEND lib_srcs mxfenc.c mxf.c avc.c)
endif()
if(${CONFIG_MXG_DEMUXER})
  list(APPEND lib_srcs mxg.c)
endif()
if(${CONFIG_NC_DEMUXER})
  list(APPEND lib_srcs ncdec.c)
endif()
if(${CONFIG_NISTSPHERE_DEMUXER})
  list(APPEND lib_srcs nistspheredec.c pcm.c)
endif()
if(${CONFIG_NSP_DEMUXER})
  list(APPEND lib_srcs nspdec.c pcm.c)
endif()
if(${CONFIG_NSV_DEMUXER})
  list(APPEND lib_srcs nsvdec.c)
endif()
if(${CONFIG_NULL_MUXER})
  list(APPEND lib_srcs nullenc.c)
endif()
if(${CONFIG_NUT_DEMUXER})
  list(APPEND lib_srcs nutdec.c nut.c isom_tags.c)
endif()
if(${CONFIG_NUT_MUXER})
  list(APPEND lib_srcs nutenc.c nut.c)
endif()
if(${CONFIG_NUV_DEMUXER})
  list(APPEND lib_srcs nuv.c)
endif()
if(${CONFIG_AV1_DEMUXER})
  list(APPEND lib_srcs av1dec.c)
endif()
if(${CONFIG_OBU_DEMUXER})
  list(APPEND lib_srcs av1dec.c)
endif()
if(${CONFIG_OGG_DEMUXER})
  list(APPEND lib_srcs oggdec.c 
 oggparsecelt.c 
 oggparsedirac.c 
 oggparseflac.c 
 oggparseogm.c 
 oggparseopus.c 
 oggparseskeleton.c 
 oggparsespeex.c 
 oggparsetheora.c 
 oggparsevorbis.c 
 oggparsevp8.c 
 replaygain.c 
 vorbiscomment.c 
 flac_picture.c)
endif()
if(${CONFIG_OGA_MUXER})
  list(APPEND lib_srcs oggenc.c 
 vorbiscomment.c)
endif()
if(${CONFIG_OGG_MUXER})
  list(APPEND lib_srcs oggenc.c 
 vorbiscomment.c)
endif()
if(${CONFIG_OGV_MUXER})
  list(APPEND lib_srcs oggenc.c 
 vorbiscomment.c)
endif()
if(${CONFIG_OMA_DEMUXER})
  list(APPEND lib_srcs omadec.c pcm.c oma.c)
endif()
if(${CONFIG_OMA_MUXER})
  list(APPEND lib_srcs omaenc.c rawenc.c oma.c id3v2enc.c)
endif()
if(${CONFIG_OPUS_MUXER})
  list(APPEND lib_srcs oggenc.c 
 vorbiscomment.c)
endif()
if(${CONFIG_PAF_DEMUXER})
  list(APPEND lib_srcs paf.c)
endif()
if(${CONFIG_PCM_ALAW_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_ALAW_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PCM_F32BE_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_F32BE_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PCM_F32LE_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_F32LE_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PCM_F64BE_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_F64BE_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PCM_F64LE_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_F64LE_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PCM_MULAW_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_MULAW_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PCM_S16BE_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_S16BE_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PCM_S16LE_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_S16LE_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PCM_S24BE_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_S24BE_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PCM_S24LE_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_S24LE_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PCM_S32BE_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_S32BE_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PCM_S32LE_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_S32LE_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PCM_S8_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_S8_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PCM_U16BE_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_U16BE_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PCM_U16LE_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_U16LE_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PCM_U24BE_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_U24BE_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PCM_U24LE_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_U24LE_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PCM_U32BE_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_U32BE_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PCM_U32LE_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_U32LE_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PCM_U8_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_U8_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PCM_VIDC_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_PCM_VIDC_MUXER})
  list(APPEND lib_srcs pcmenc.c rawenc.c)
endif()
if(${CONFIG_PJS_DEMUXER})
  list(APPEND lib_srcs pjsdec.c subtitles.c)
endif()
if(${CONFIG_PMP_DEMUXER})
  list(APPEND lib_srcs pmpdec.c)
endif()
if(${CONFIG_PP_BNK_DEMUXER})
  list(APPEND lib_srcs pp_bnk.c)
endif()
if(${CONFIG_PVA_DEMUXER})
  list(APPEND lib_srcs pva.c)
endif()
if(${CONFIG_PVF_DEMUXER})
  list(APPEND lib_srcs pvfdec.c pcm.c)
endif()
if(${CONFIG_QCP_DEMUXER})
  list(APPEND lib_srcs qcp.c)
endif()
if(${CONFIG_R3D_DEMUXER})
  list(APPEND lib_srcs r3d.c)
endif()
if(${CONFIG_RAWVIDEO_DEMUXER})
  list(APPEND lib_srcs rawvideodec.c)
endif()
if(${CONFIG_RAWVIDEO_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_REALTEXT_DEMUXER})
  list(APPEND lib_srcs realtextdec.c subtitles.c)
endif()
if(${CONFIG_REDSPARK_DEMUXER})
  list(APPEND lib_srcs redspark.c)
endif()
if(${CONFIG_RL2_DEMUXER})
  list(APPEND lib_srcs rl2.c)
endif()
if(${CONFIG_RM_DEMUXER})
  list(APPEND lib_srcs rmdec.c rm.c rmsipr.c)
endif()
if(${CONFIG_RM_MUXER})
  list(APPEND lib_srcs rmenc.c rm.c)
endif()
if(${CONFIG_ROQ_DEMUXER})
  list(APPEND lib_srcs idroqdec.c)
endif()
if(${CONFIG_ROQ_MUXER})
  list(APPEND lib_srcs idroqenc.c rawenc.c)
endif()
if(${CONFIG_RSD_DEMUXER})
  list(APPEND lib_srcs rsd.c)
endif()
if(${CONFIG_RPL_DEMUXER})
  list(APPEND lib_srcs rpl.c)
endif()
if(${CONFIG_RSO_DEMUXER})
  list(APPEND lib_srcs rsodec.c rso.c pcm.c)
endif()
if(${CONFIG_RSO_MUXER})
  list(APPEND lib_srcs rsoenc.c rso.c rawenc.c)
endif()
if(${CONFIG_RTP_MPEGTS_MUXER})
  list(APPEND lib_srcs rtpenc_mpegts.c)
endif()
if(${CONFIG_RTP_MUXER})
  list(APPEND lib_srcs rtp.c 
 rtpenc_aac.c 
 rtpenc_latm.c 
 rtpenc_amr.c 
 rtpenc_h261.c 
 rtpenc_h263.c 
 rtpenc_h263_rfc2190.c 
 rtpenc_h264_hevc.c 
 rtpenc_jpeg.c 
 rtpenc_mpv.c 
 rtpenc.c 
 rtpenc_vc2hq.c 
 rtpenc_vp8.c 
 rtpenc_vp9.c 
 rtpenc_xiph.c 
 avc.c hevc.c)
endif()
if(${CONFIG_RTSP_DEMUXER})
  list(APPEND lib_srcs rtsp.c rtspdec.c httpauth.c 
 urldecode.c)
endif()
if(${CONFIG_RTSP_MUXER})
  list(APPEND lib_srcs rtsp.c rtspenc.c httpauth.c 
 urldecode.c)
endif()
if(${CONFIG_S337M_DEMUXER})
  list(APPEND lib_srcs s337m.c spdif.c)
endif()
if(${CONFIG_SAMI_DEMUXER})
  list(APPEND lib_srcs samidec.c subtitles.c)
endif()
if(${CONFIG_SAP_DEMUXER})
  list(APPEND lib_srcs sapdec.c)
endif()
if(${CONFIG_SAP_MUXER})
  list(APPEND lib_srcs sapenc.c)
endif()
if(${CONFIG_SBC_DEMUXER})
  list(APPEND lib_srcs sbcdec.c rawdec.c)
endif()
if(${CONFIG_SBC_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_SBG_DEMUXER})
  list(APPEND lib_srcs sbgdec.c)
endif()
if(${CONFIG_SCC_DEMUXER})
  list(APPEND lib_srcs sccdec.c subtitles.c)
endif()
if(${CONFIG_SCC_MUXER})
  list(APPEND lib_srcs sccenc.c subtitles.c)
endif()
if(${CONFIG_SDP_DEMUXER})
  list(APPEND lib_srcs rtsp.c)
endif()
if(${CONFIG_SDR2_DEMUXER})
  list(APPEND lib_srcs sdr2.c)
endif()
if(${CONFIG_SDS_DEMUXER})
  list(APPEND lib_srcs sdsdec.c)
endif()
if(${CONFIG_SDX_DEMUXER})
  list(APPEND lib_srcs sdxdec.c pcm.c)
endif()
if(${CONFIG_SEGAFILM_DEMUXER})
  list(APPEND lib_srcs segafilm.c)
endif()
if(${CONFIG_SEGAFILM_MUXER})
  list(APPEND lib_srcs segafilmenc.c)
endif()
if(${CONFIG_SEGMENT_MUXER})
  list(APPEND lib_srcs segment.c)
endif()
if(${CONFIG_SER_DEMUXER})
  list(APPEND lib_srcs serdec.c)
endif()
if(${CONFIG_SGA_DEMUXER})
  list(APPEND lib_srcs sga.c)
endif()
if(${CONFIG_SHORTEN_DEMUXER})
  list(APPEND lib_srcs shortendec.c rawdec.c)
endif()
if(${CONFIG_SIFF_DEMUXER})
  list(APPEND lib_srcs siff.c)
endif()
if(${CONFIG_SIMBIOSIS_IMX_DEMUXER})
  list(APPEND lib_srcs imx.c)
endif()
if(${CONFIG_SINGLEJPEG_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_SLN_DEMUXER})
  list(APPEND lib_srcs pcmdec.c pcm.c)
endif()
if(${CONFIG_SMACKER_DEMUXER})
  list(APPEND lib_srcs smacker.c)
endif()
if(${CONFIG_SMJPEG_DEMUXER})
  list(APPEND lib_srcs smjpegdec.c smjpeg.c)
endif()
if(${CONFIG_SMJPEG_MUXER})
  list(APPEND lib_srcs smjpegenc.c smjpeg.c)
endif()
if(${CONFIG_SMOOTHSTREAMING_MUXER})
  list(APPEND lib_srcs smoothstreamingenc.c)
endif()
if(${CONFIG_SMUSH_DEMUXER})
  list(APPEND lib_srcs smush.c)
endif()
if(${CONFIG_SOL_DEMUXER})
  list(APPEND lib_srcs sol.c pcm.c)
endif()
if(${CONFIG_SOX_DEMUXER})
  list(APPEND lib_srcs soxdec.c pcm.c)
endif()
if(${CONFIG_SOX_MUXER})
  list(APPEND lib_srcs soxenc.c rawenc.c)
endif()
if(${CONFIG_SPDIF_DEMUXER})
  list(APPEND lib_srcs spdif.c spdifdec.c)
endif()
if(${CONFIG_SPDIF_MUXER})
  list(APPEND lib_srcs spdif.c spdifenc.c)
endif()
if(${CONFIG_SPEEX_MUXER})
  list(APPEND lib_srcs oggenc.c 
 vorbiscomment.c)
endif()
if(${CONFIG_SRT_DEMUXER})
  list(APPEND lib_srcs srtdec.c subtitles.c)
endif()
if(${CONFIG_SRT_MUXER})
  list(APPEND lib_srcs srtenc.c)
endif()
if(${CONFIG_STL_DEMUXER})
  list(APPEND lib_srcs stldec.c subtitles.c)
endif()
if(${CONFIG_STR_DEMUXER})
  list(APPEND lib_srcs psxstr.c)
endif()
if(${CONFIG_STREAMHASH_MUXER})
  list(APPEND lib_srcs hashenc.c)
endif()
if(${CONFIG_STREAM_SEGMENT_MUXER})
  list(APPEND lib_srcs segment.c)
endif()
if(${CONFIG_SUBVIEWER1_DEMUXER})
  list(APPEND lib_srcs subviewer1dec.c subtitles.c)
endif()
if(${CONFIG_SUBVIEWER_DEMUXER})
  list(APPEND lib_srcs subviewerdec.c subtitles.c)
endif()
if(${CONFIG_SUP_DEMUXER})
  list(APPEND lib_srcs supdec.c)
endif()
if(${CONFIG_SUP_MUXER})
  list(APPEND lib_srcs supenc.c)
endif()
if(${CONFIG_SVAG_DEMUXER})
  list(APPEND lib_srcs svag.c)
endif()
if(${CONFIG_SVS_DEMUXER})
  list(APPEND lib_srcs svs.c)
endif()
if(${CONFIG_SWF_DEMUXER})
  list(APPEND lib_srcs swfdec.c swf.c)
endif()
if(${CONFIG_SWF_MUXER})
  list(APPEND lib_srcs swfenc.c swf.c)
endif()
if(${CONFIG_TAK_DEMUXER})
  list(APPEND lib_srcs takdec.c apetag.c img2.c rawdec.c)
endif()
if(${CONFIG_TEDCAPTIONS_DEMUXER})
  list(APPEND lib_srcs tedcaptionsdec.c subtitles.c)
endif()
if(${CONFIG_TEE_MUXER})
  list(APPEND lib_srcs tee.c tee_common.c)
endif()
if(${CONFIG_THP_DEMUXER})
  list(APPEND lib_srcs thp.c)
endif()
if(${CONFIG_THREEDOSTR_DEMUXER})
  list(APPEND lib_srcs 3dostr.c)
endif()
if(${CONFIG_TIERTEXSEQ_DEMUXER})
  list(APPEND lib_srcs tiertexseq.c)
endif()
if(${CONFIG_MKVTIMESTAMP_V2_MUXER})
  list(APPEND lib_srcs mkvtimestamp_v2.c)
endif()
if(${CONFIG_TMV_DEMUXER})
  list(APPEND lib_srcs tmv.c)
endif()
if(${CONFIG_TRUEHD_DEMUXER})
  list(APPEND lib_srcs rawdec.c mlpdec.c)
endif()
if(${CONFIG_TRUEHD_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_TTA_DEMUXER})
  list(APPEND lib_srcs tta.c apetag.c img2.c)
endif()
if(${CONFIG_TTA_MUXER})
  list(APPEND lib_srcs ttaenc.c apetag.c img2.c)
endif()
if(${CONFIG_TTML_MUXER})
  list(APPEND lib_srcs ttmlenc.c)
endif()
if(${CONFIG_TTY_DEMUXER})
  list(APPEND lib_srcs tty.c sauce.c)
endif()
if(${CONFIG_TY_DEMUXER})
  list(APPEND lib_srcs ty.c)
endif()
if(${CONFIG_TXD_DEMUXER})
  list(APPEND lib_srcs txd.c)
endif()
if(${CONFIG_UNCODEDFRAMECRC_MUXER})
  list(APPEND lib_srcs uncodedframecrcenc.c framehash.c)
endif()
if(${CONFIG_V210_DEMUXER})
  list(APPEND lib_srcs v210.c)
endif()
if(${CONFIG_V210X_DEMUXER})
  list(APPEND lib_srcs v210.c)
endif()
if(${CONFIG_VAG_DEMUXER})
  list(APPEND lib_srcs vag.c)
endif()
if(${CONFIG_VC1_DEMUXER})
  list(APPEND lib_srcs rawdec.c vc1dec.c)
endif()
if(${CONFIG_VC1_MUXER})
  list(APPEND lib_srcs rawenc.c)
endif()
if(${CONFIG_VC1T_DEMUXER})
  list(APPEND lib_srcs vc1test.c)
endif()
if(${CONFIG_VC1T_MUXER})
  list(APPEND lib_srcs vc1testenc.c)
endif()
if(${CONFIG_VIVIDAS_DEMUXER})
  list(APPEND lib_srcs vividas.c)
endif()
if(${CONFIG_VIVO_DEMUXER})
  list(APPEND lib_srcs vivo.c)
endif()
if(${CONFIG_VMD_DEMUXER})
  list(APPEND lib_srcs sierravmd.c)
endif()
if(${CONFIG_VOBSUB_DEMUXER})
  list(APPEND lib_srcs subtitles.c)
endif()
# mpeg demuxer is in the dependencies
if(${CONFIG_VOC_DEMUXER})
  list(APPEND lib_srcs vocdec.c voc_packet.c voc.c)
endif()
if(${CONFIG_VOC_MUXER})
  list(APPEND lib_srcs vocenc.c voc.c)
endif()
if(${CONFIG_VPK_DEMUXER})
  list(APPEND lib_srcs vpk.c)
endif()
if(${CONFIG_VPLAYER_DEMUXER})
  list(APPEND lib_srcs vplayerdec.c subtitles.c)
endif()
if(${CONFIG_VQF_DEMUXER})
  list(APPEND lib_srcs vqf.c)
endif()
if(${CONFIG_W64_DEMUXER})
  list(APPEND lib_srcs wavdec.c w64.c pcm.c)
endif()
if(${CONFIG_W64_MUXER})
  list(APPEND lib_srcs wavenc.c w64.c)
endif()
if(${CONFIG_WAV_DEMUXER})
  list(APPEND lib_srcs wavdec.c pcm.c)
endif()
if(${CONFIG_WAV_MUXER})
  list(APPEND lib_srcs wavenc.c)
endif()
if(${CONFIG_WC3_DEMUXER})
  list(APPEND lib_srcs wc3movie.c)
endif()
if(${CONFIG_WEBM_MUXER})
  list(APPEND lib_srcs matroskaenc.c matroska.c 
 av1.c avc.c hevc.c isom_tags.c 
 flacenc_header.c avlanguage.c 
 wv.c vorbiscomment.c)
endif()
if(${CONFIG_WEBM_DASH_MANIFEST_MUXER})
  list(APPEND lib_srcs webmdashenc.c)
endif()
if(${CONFIG_WEBM_CHUNK_MUXER})
  list(APPEND lib_srcs webm_chunk.c)
endif()
if(${CONFIG_WEBP_MUXER})
  list(APPEND lib_srcs webpenc.c)
endif()
if(${CONFIG_WEBVTT_DEMUXER})
  list(APPEND lib_srcs webvttdec.c subtitles.c)
endif()
if(${CONFIG_WEBVTT_MUXER})
  list(APPEND lib_srcs webvttenc.c)
endif()
if(${CONFIG_WSAUD_DEMUXER})
  list(APPEND lib_srcs westwood_aud.c)
endif()
if(${CONFIG_WSD_DEMUXER})
  list(APPEND lib_srcs wsddec.c rawdec.c)
endif()
if(${CONFIG_WSVQA_DEMUXER})
  list(APPEND lib_srcs westwood_vqa.c)
endif()
if(${CONFIG_WTV_DEMUXER})
  list(APPEND lib_srcs wtvdec.c wtv_common.c 
 asf.c)
endif()
if(${CONFIG_WTV_MUXER})
  list(APPEND lib_srcs wtvenc.c wtv_common.c 
 asf.c)
endif()
if(${CONFIG_WV_DEMUXER})
  list(APPEND lib_srcs wvdec.c wv.c apetag.c img2.c)
endif()
if(${CONFIG_WVE_DEMUXER})
  list(APPEND lib_srcs wvedec.c pcm.c)
endif()
if(${CONFIG_WV_MUXER})
  list(APPEND lib_srcs wvenc.c wv.c apetag.c img2.c)
endif()
if(${CONFIG_XA_DEMUXER})
  list(APPEND lib_srcs xa.c)
endif()
if(${CONFIG_XBIN_DEMUXER})
  list(APPEND lib_srcs bintext.c sauce.c)
endif()
if(${CONFIG_XMV_DEMUXER})
  list(APPEND lib_srcs xmv.c)
endif()
if(${CONFIG_XVAG_DEMUXER})
  list(APPEND lib_srcs xvag.c)
endif()
if(${CONFIG_XWMA_DEMUXER})
  list(APPEND lib_srcs xwma.c)
endif()
if(${CONFIG_YOP_DEMUXER})
  list(APPEND lib_srcs yop.c)
endif()
if(${CONFIG_YUV4MPEGPIPE_DEMUXER})
  list(APPEND lib_srcs yuv4mpegdec.c)
endif()
if(${CONFIG_YUV4MPEGPIPE_MUXER})
  list(APPEND lib_srcs yuv4mpegenc.c)
endif()

# external library muxers/demuxers
if(${CONFIG_AVISYNTH_DEMUXER})
  list(APPEND lib_srcs avisynth.c)
endif()
if(${CONFIG_CHROMAPRINT_MUXER})
  list(APPEND lib_srcs chromaprint.c)
endif()
if(${CONFIG_LIBGME_DEMUXER})
  list(APPEND lib_srcs libgme.c)
endif()
if(${CONFIG_LIBMODPLUG_DEMUXER})
  list(APPEND lib_srcs libmodplug.c)
endif()
if(${CONFIG_LIBOPENMPT_DEMUXER})
  list(APPEND lib_srcs libopenmpt.c)
endif()
if(${CONFIG_VAPOURSYNTH_DEMUXER})
  list(APPEND lib_srcs vapoursynth.c)
endif()

# protocols I/O
if(${CONFIG_ASYNC_PROTOCOL})
  list(APPEND lib_srcs async.c)
endif()
if(${CONFIG_APPLEHTTP_PROTOCOL})
  list(APPEND lib_srcs hlsproto.c)
endif()
if(${CONFIG_BLURAY_PROTOCOL})
  list(APPEND lib_srcs bluray.c)
endif()
if(${CONFIG_CACHE_PROTOCOL})
  list(APPEND lib_srcs cache.c)
endif()
if(${CONFIG_CONCAT_PROTOCOL})
  list(APPEND lib_srcs concat.c)
endif()
if(${CONFIG_CRYPTO_PROTOCOL})
  list(APPEND lib_srcs crypto.c)
endif()
if(${CONFIG_DATA_PROTOCOL})
  list(APPEND lib_srcs data_uri.c)
endif()
if(${CONFIG_FFRTMPCRYPT_PROTOCOL})
  list(APPEND lib_srcs rtmpcrypt.c rtmpdigest.c rtmpdh.c)
endif()
if(${CONFIG_FFRTMPHTTP_PROTOCOL})
  list(APPEND lib_srcs rtmphttp.c)
endif()
if(${CONFIG_FILE_PROTOCOL})
  list(APPEND lib_srcs file.c)
endif()
if(${CONFIG_FTP_PROTOCOL})
  list(APPEND lib_srcs ftp.c urldecode.c)
endif()
if(${CONFIG_GOPHER_PROTOCOL})
  list(APPEND lib_srcs gopher.c)
endif()
if(${CONFIG_GOPHERS_PROTOCOL})
  list(APPEND lib_srcs gopher.c)
endif()
if(${CONFIG_HLS_PROTOCOL})
  list(APPEND lib_srcs hlsproto.c)
endif()
if(${CONFIG_HTTP_PROTOCOL})
  list(APPEND lib_srcs http.c httpauth.c urldecode.c)
endif()
if(${CONFIG_HTTPPROXY_PROTOCOL})
  list(APPEND lib_srcs http.c httpauth.c urldecode.c)
endif()
if(${CONFIG_HTTPS_PROTOCOL})
  list(APPEND lib_srcs http.c httpauth.c urldecode.c)
endif()
if(${CONFIG_ICECAST_PROTOCOL})
  list(APPEND lib_srcs icecast.c)
endif()
if(${CONFIG_MD5_PROTOCOL})
  list(APPEND lib_srcs md5proto.c)
endif()
if(${CONFIG_MMSH_PROTOCOL})
  list(APPEND lib_srcs mmsh.c mms.c asf.c)
endif()
if(${CONFIG_MMST_PROTOCOL})
  list(APPEND lib_srcs mmst.c mms.c asf.c)
endif()
if(${CONFIG_PIPE_PROTOCOL})
  list(APPEND lib_srcs file.c)
endif()
if(${CONFIG_PROMPEG_PROTOCOL})
  list(APPEND lib_srcs prompeg.c)
endif()
if(${CONFIG_RTMP_PROTOCOL})
  list(APPEND lib_srcs rtmpproto.c rtmpdigest.c rtmppkt.c)
endif()
if(${CONFIG_RTMPE_PROTOCOL})
  list(APPEND lib_srcs rtmpproto.c rtmpdigest.c rtmppkt.c)
endif()
if(${CONFIG_RTMPS_PROTOCOL})
  list(APPEND lib_srcs rtmpproto.c rtmpdigest.c rtmppkt.c)
endif()
if(${CONFIG_RTMPT_PROTOCOL})
  list(APPEND lib_srcs rtmpproto.c rtmpdigest.c rtmppkt.c)
endif()
if(${CONFIG_RTMPTE_PROTOCOL})
  list(APPEND lib_srcs rtmpproto.c rtmpdigest.c rtmppkt.c)
endif()
if(${CONFIG_RTMPTS_PROTOCOL})
  list(APPEND lib_srcs rtmpproto.c rtmpdigest.c rtmppkt.c)
endif()
if(${CONFIG_RTP_PROTOCOL})
  list(APPEND lib_srcs rtpproto.c ip.c)
endif()
if(${CONFIG_SCTP_PROTOCOL})
  list(APPEND lib_srcs sctp.c)
endif()
if(${CONFIG_SRTP_PROTOCOL})
  list(APPEND lib_srcs srtpproto.c srtp.c)
endif()
if(${CONFIG_SUBFILE_PROTOCOL})
  list(APPEND lib_srcs subfile.c)
endif()
if(${CONFIG_TEE_PROTOCOL})
  list(APPEND lib_srcs teeproto.c tee_common.c)
endif()
if(${CONFIG_TCP_PROTOCOL})
  list(APPEND lib_srcs tcp.c)
endif()
if(${CONFIG_GNUTLS})
  list(APPEND lib_srcs tls_gnutls.c)
endif()
if(${CONFIG_LIBTLS})
  list(APPEND lib_srcs tls_libtls.c)
endif()
if(${CONFIG_MBEDTLS})
  list(APPEND lib_srcs tls_mbedtls.c)
endif()
if(${CONFIG_OPENSSL})
  list(APPEND lib_srcs tls_openssl.c)
endif()
if(${CONFIG_SECURETRANSPORT})
  list(APPEND lib_srcs tls_securetransport.c)
endif()
if(${CONFIG_SCHANNEL})
  list(APPEND lib_srcs tls_schannel.c)
endif()
if(${CONFIG_TLS_PROTOCOL})
  list(APPEND lib_srcs tls.c)
endif()
if(${CONFIG_UDP_PROTOCOL})
  list(APPEND lib_srcs udp.c ip.c)
endif()
if(${CONFIG_UDPLITE_PROTOCOL})
  list(APPEND lib_srcs udp.c ip.c)
endif()
if(${CONFIG_UNIX_PROTOCOL})
  list(APPEND lib_srcs unix.c)
endif()

# external library protocols
if(${CONFIG_LIBAMQP_PROTOCOL})
  list(APPEND lib_srcs libamqp.c)
endif()
if(${CONFIG_LIBRIST_PROTOCOL})
  list(APPEND lib_srcs librist.c)
endif()
if(${CONFIG_LIBRTMP_PROTOCOL})
  list(APPEND lib_srcs librtmp.c)
endif()
if(${CONFIG_LIBRTMPE_PROTOCOL})
  list(APPEND lib_srcs librtmp.c)
endif()
if(${CONFIG_LIBRTMPS_PROTOCOL})
  list(APPEND lib_srcs librtmp.c)
endif()
if(${CONFIG_LIBRTMPT_PROTOCOL})
  list(APPEND lib_srcs librtmp.c)
endif()
if(${CONFIG_LIBRTMPTE_PROTOCOL})
  list(APPEND lib_srcs librtmp.c)
endif()
if(${CONFIG_LIBSMBCLIENT_PROTOCOL})
  list(APPEND lib_srcs libsmbclient.c)
endif()
if(${CONFIG_LIBSRT_PROTOCOL})
  list(APPEND lib_srcs libsrt.c)
endif()
if(${CONFIG_LIBSSH_PROTOCOL})
  list(APPEND lib_srcs libssh.c)
endif()
if(${CONFIG_LIBZMQ_PROTOCOL})
  list(APPEND lib_srcs libzmq.c)
endif()

# libavdevice dependencies
if(${CONFIG_IEC61883_INDEV})
  list(APPEND lib_srcs dv.c)
endif()

# Windows resource file
if(${HAVE_GNU_WINDRES})
  list(APPEND lib_srcs avformatres.c)
endif()

include_directories(.. ../compat ../compat/atomics/win32 x86)
add_definitions(-DHAVE_AV_CONFIG_H)
add_library(${PROJECT_NAME} SHARED ${lib_srcs} ${lib_asms} ${lib_objs})
target_link_libraries(${PROJECT_NAME} ${lib_libs} avcodec avutil secur32 ws2_32)
install(FILES ${lib_hdrs} DESTINATION include/ffmpeg/lib${PROJECT_NAME})
install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}-targets RUNTIME DESTINATION bin ARCHIVE DESTINATION lib)
install(EXPORT ${PROJECT_NAME}-targets DESTINATION lib/cmake FILE ${PROJECT_NAME}-config.cmake)

if(BUILD_STATIC)
  add_library(${PROJECT_NAME}S STATIC ${lib_srcs} ${lib_asms} ${lib_objs})
  install(TARGETS ${PROJECT_NAME}S EXPORT ${PROJECT_NAME}S-targets RUNTIME DESTINATION bin ARCHIVE DESTINATION lib)
  install(EXPORT ${PROJECT_NAME}S-targets DESTINATION lib/cmake FILE ${PROJECT_NAME}S-config.cmake)
endif()

